#import "WFFarm.h"

@implementation WFFarm

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    return [self yy_modelInitWithCoder:aDecoder];
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    return [self yy_modelEncodeWithCoder:aCoder];
}

- (NSString *)description {
    return [self yy_modelDescription];
}

- (id)copyWithZone:(NSZone *)zone {
    return [self yy_modelCopy];
}

- (CLLocationCoordinate2D)coordinate {
    if (fabs(self.latitude) < 90 && fabs(self.longitude) < 180) {
        return CLLocationCoordinate2DMake(self.latitude, self.longitude);
    }
    return kCLLocationCoordinate2DInvalid;
}

@end
